﻿<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
 
    <script type='text/html' template> 
        <input type='hidden' name='PID' value="{{ d.params.PID || '' }}"/>
    </script>    
    <div class='layui-form-item'>
        <label class='layui-form-label'>订单ID </label>
        <div class='layui-input-block'>
            <div class='layui-input-inline'>
                <script type='text/html' template lay-done='layui.data.getSelSource(d.params,"OrderPID_SelSource");'>
                    <select name='OrderPID_SelSource' readonly='readonly' id='OrderPID_SelSource' lay-search></select>
                </script>
            </div>
        </div>
    </div>    
    <div class='layui-form-item'>
        <label class='layui-form-label'>订单商品ID </label>
        <div class='layui-input-block'>
            <div class='layui-input-inline'>
                <script type='text/html' template lay-done='layui.data.getSelSource(d.params,"OrderGoodsPID_SelSource");'>
                    <select name='OrderGoodsPID_SelSource' readonly='readonly' id='OrderGoodsPID_SelSource' lay-search></select>
                </script>
            </div>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>商品评分</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Score' value='{{ d.params.Score || '' }}' lay-verify='required|number' placeholder='商品评分' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>点赞总数</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='FabulousCount' value='{{ d.params.FabulousCount || '' }}' lay-verify='required|number' placeholder='点赞总数' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>回复总数</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='ReplyCount' value='{{ d.params.ReplyCount || '' }}' lay-verify='required|number' placeholder='回复总数' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>商品名称</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Name' value='{{ d.params.Name || '' }}' lay-verify='required' placeholder='商品名称' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>产品规格</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='GoodSpec' value='{{ d.params.GoodSpec || '' }}' lay-verify='required' placeholder='产品规格' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>     
    <div class='layui-form-item'>
        <label class='layui-form-label'>是否匿名 </label>
        <div class='layui-input-block'>
            <div class='layui-input-inline'>
                <script type='text/html' template>
                    <select readonly='readonly' name='IsAnonymous_Sel'>                      <option value='0' {{ d.params.IsAnonymous_Sel == '0' ? 'selected' : '' }}>否</option>                      <option value='1' {{ d.params.IsAnonymous_Sel == '1' ? 'selected' : '' }}>是</option>
                    </select>
                </script> 
            </div>
        </div>
    </div>
       
    <div class='layui-form-item'>
        <label class='layui-form-label'>物流评分1</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='WlScore1' value='{{ d.params.WlScore1 || '' }}' lay-verify='required|number' placeholder='物流评分1' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>物流评分2</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='WlScore2' value='{{ d.params.WlScore2 || '' }}' lay-verify='required|number' placeholder='物流评分2' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>物流评分3</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='WlScore3' value='{{ d.params.WlScore3 || '' }}' lay-verify='required|number' placeholder='物流评分3' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他字段1</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Other1' value='{{ d.params.Other1 || '' }}' lay-verify='required' placeholder='其他字段1' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他字段2</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Other2' value='{{ d.params.Other2 || '' }}' lay-verify='required' placeholder='其他字段2' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他字段3</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Other3' value='{{ d.params.Other3 || '' }}' lay-verify='required' placeholder='其他字段3' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他字段4</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Other4' value='{{ d.params.Other4 || '' }}' lay-verify='required' placeholder='其他字段4' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他字段5</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Other5' value='{{ d.params.Other5 || '' }}' lay-verify='required' placeholder='其他字段5' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>其他字段6</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Other6' value='{{ d.params.Other6 || '' }}' lay-verify='required' placeholder='其他字段6' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>评价图片</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' readonly='readonly' name='Pictures' value='{{ d.params.Pictures || '' }}' lay-verify='required' placeholder='评价图片' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div> 
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button"  onclick="Close()" value="关闭" class="layui-btn">
        </div>
    </div>
</div>

<script type="text/javascript">  
    function Close(){
        layer.closeAll();
    }

    layui.use(['form','admin','upload','laydate'], function () {
        var form = layui.form;//required（必填项）phone（手机号）email（邮箱）url（网址）number（数字）date（日期）identity（身份证） 自定义值
    });
    
    
    layui.data.getSelSource = function (d,sourceName) { 
            var $ = layui.$;
            var form = layui.form;
            var admin = layui.admin;

            if (sourceName == "OrderPID_SelSource") {
                admin.req({
                    url: layui.setter.APIUrl + '/shop/orderMgr/customerQuery', //实际使用请改成服务端真实接口
                    type: 'post',
                    done: function (res) {
                        //$("#OrderPID_SelSource").append("<option value=''>全部</option>");
                        layui.each(res.Data, function (index, eachdata) {
                            var strIsSel = '';
                            if (eachdata.PID == d.OrderPID_SelSource)
                                strIsSel = "selected='selected'"; 
                            $("#OrderPID_SelSource").append("<option value='" + eachdata.PID + "' " + strIsSel + ">" + eachdata.OrderNumber + "</option>");
                        });
                        form.render('select');
                    }
                }); 
            }

            if (sourceName == "OrderGoodsPID_SelSource") {
                admin.req({
                    url: layui.setter.APIUrl + '/shop/order_goodsMgr/customerQuery', //实际使用请改成服务端真实接口
                    type: 'post',
                    done: function (res) {
                        //$("#OrderGoodsPID_SelSource").append("<option value=''>全部</option>");
                        layui.each(res.Data, function (index, eachdata) {
                            var strIsSel = '';
                            if (eachdata.PID == d.OrderGoodsPID_SelSource)
                                strIsSel = "selected='selected'"; 
                            $("#OrderGoodsPID_SelSource").append("<option value='" + eachdata.PID + "' " + strIsSel + ">" + eachdata.Name + "</option>");
                        });
                        form.render('select');
                    }
                }); 
            }
 
    }
 
    
    layui.data.setUpload = function (d) { 
            var $ = layui.$,
            upload = layui.upload,
            admin = layui.admin;
            var formSelects = layui.formSelects;
 
    }

    
    layui.data.datedone = function (d) { 
            var laydate = layui.laydate;
 
    }
    
</script>
